<!DOCTYPE html>
<html>

<head>
  <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>百度地图容器</title>
  <style type="text/css">
    body {
      margin: 0;
      padding: 0;
    }

    #container {
      width: 100vw;
      height: 100vh;
      border: 1px solid #f00;
      box-sizing: border-box;
    }

    .map_circle {
      width: 70px;
      height: 70px;
      background-color: rgba(12, 181, 106, .9);
      border: 2px solid rgba(255, 255, 255, .8);
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50%;
      color: #fff;
      flex-direction: column;
    }
  </style>
   <script src="http://api.map.baidu.com/api?v=3.0&ak=eQzkGfNYjZulq8yab9tvbS17w8tqQ8xv"></script>
</head>
<body>
	<div id="container"></div>
</body>
</html>
<script>
	// 百度地图API功能
	var map = new BMap.Map("container");  // 创建Map实例
    // 创建点坐标
    var point = new BMap.Point(116.404,39.915)
	map.centerAndZoom(point,10);      // 初始化地图,用城市名设置地图中心点
	// map.centerAndZoom("上海",15);      // 初始化地图,用城市名设置地图中心点
    /*             添加地图控件**/ 
    // 比例尺 ScaleControl 默认位于地图左下方，显示地图的比例关系
    map.addControl(new BMap.ScaleControl())
    // 平移缩放控件  NavigationControl  
    map.addControl(new BMap.NavigationControl())
    // 缩略地图 OverviewMapControl
    map.addControl(new BMap.OverviewMapControl());    
</script>